<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>请客吃饭</title>
</head>
<body>
    <script>
        var money = prompt('钱包中的金额是：');
        if(money >= 2000){
            document.write('请大家吃西餐');
        }else if(money >= 1500 && money < 2000){
            document.write('请大家吃快餐');
        }else if(money >= 1000 && money <1500){
            document.write('请大家喝饮料');
        }else if(money >= 500 && money <1000){
            document.write('请大家吃帮棒糖');
        }else {
            alert('班长下次把钱带够');
        }
    </script>
</body>
</html>